home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
TCL1
/
MIDI_MAN
/
CMIDITIM.H
< prev
next >
Wrap
Text File
|
1992-03-07
|
1KB
|
38 lines
//--- CMIDITimePort.h --------------------------------------------------------
// Copyright ⌐ Paul Ferguson, 1990, 1991, 1992. All rights reserved.
//
//
// Description:
// Refer to the CMIDI Programmer's Manual for a complete desciption of
// these objects and methods.
// For use with THINK C 5.0 and the THINK Class Library.
//
//----------------------------------------------------------------------------
#pragma once
#include "CMIDIPort.h"
class CMIDITimePort : public CMIDIPort
{
public:
OSErr IMIDITimePort(
StringPtr theName, // Pascal format, 31 char max
OSType thePortID, // Used when signing into MM
Boolean theVisibleFlag,
short theFormat); // Initial time format
virtual OSErr LoadPatches(ResType theResType, short theResID);
virtual short GetSync(void);
virtual void SetExternalSync(void);
virtual void SetInternalSync(void);
virtual short UpdateSync(void);
virtual long GetCurTime(void);
virtual void SetCurTime(long theTime);
virtual void StartTime(void);
virtual void StopTime(void);
virtual long GetOffsetTime(void);
virtual void SetOffsetTime(long theOffset);
virtual void WakeUp(long theBaseTime, long thePeriod, ProcPtr theTimeProc);
virtual void SetConnection(ProcPtr theConnectionProc);
virtual void Perform(long * maxSleep); // Makes this object a CChore
};
// end of CMIDITimePort.h